package com.javase.A02;

import java.util.Scanner;

public class A2_4为新员工分配部门 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入新员工的姓名");
        String name = sc.next();
        System.out.println("请输出新员工应聘的语言");
        String language = sc.next();
        if(language.equals("java")){
            System.out.println(name + "被分配到Java 程序开发部门");
        }else if(language.equals("C#")){
            System.out.println(name + "被分配到C# 开发部门");
        }else if(language.equals("asp.net")){
            System.out.println(name + "被分配到asp.net 程序测试部门");
        }else if ((language.equals("前端"))){
            System.out.println(name + "被分配到前端开发部门");
        }else {
            System.out.println("未找到相关职位");
        }

    }
}
